package cn.edu.scau.cmi.xuchuangxiong.mybatis.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.scau.cmi.xuchuangxiong.mybatis.mapper.TutorMapper;
import cn.edu.scau.cmi.xuchuangxiong.mybatis.pojo.Student;

@Service
public class TutorServiceImpl implements cn.edu.scau.cmi.xuchuangxiong.mybatis.service.TutorService {

	@Autowired
	TutorMapper tutorMapper;
	
	@Override
	public boolean insertTutor(String teaID, String stuID) {
		return tutorMapper.insertTutor(teaID, stuID);
	}

	@Override
	public boolean deleteTutorByStuID(String stuID) {
		return tutorMapper.deleteTutorByStuID(stuID);
	}

	@Override
	public List<Student> selectStudentByTeaID(String teaID) {
		return tutorMapper.selectStudentByTeaID(teaID);
	}

}
